const initData = {
    playMusic: false,
}

const myFloatButtonRedux = (state = initData, action) => {
    const newState = {...state}
    switch (action.type) {
        case 'PLAYMUSIC':
            newState.playMusic = !newState.playMusic
            return newState
        default:
            return state
    }
}


export default myFloatButtonRedux
